import service from "../utils/service";
// 封装相关数据请求

let Link = (url, method="get", data, params) => {
    return new Promise((resolve, reject) => {
        service.request({
            url,
            method,
            data,
            params
        }).then((ok) => {
            resolve(ok)
        }).catch((err) => {
            reject(err)
        })
    })
}




export default Link